import R from '@/types/conduit/R'
import request from '@/utils/request.ts'
interface DataObj {
  policy: string
  signature: string
  key: string
  ossaccessKeyId: string
  dir: string
  host: string
  accessid: string
}
export function policy(): Promise<R<DataObj>> {
  return request({
    url: `/third-party/oss/policy`, // user是Controller类上的路径，login是方法上的路径
    method: 'get'
  })
}
